#include "RenderCommandFence.h"

namespace Alice
{
    RenderCommandFenceBundlerState GRenderCommandFenceBundlerState;
    void StartRenderCommandFenceBundler()
    {
        
    }
    void StopRenderCommandFenceBundler()
    {
        
    }
    RenderCommandFence::RenderCommandFence()
        :mEvent(nullptr)
    {
        
    }
    RenderCommandFence::~RenderCommandFence()
    {
        if(mEvent!=nullptr)
        {
            delete mEvent;
        }
    }
    void RenderCommandFence::BeginFence(ESyncDepth SyncDepth)
    {
        mEvent=new Event;
    }
    void RenderCommandFence::Wait(bool bProcessGameThreadTasks) const
    {
        mEvent->Wait();
    }
}